<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- <meta name="viewport" content="target-densitydpi=device-dpi,width=750,user-scalable=no" /> -->
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
	<title>专题</title>
	<meta http-equiv="cleartype" content="on">
    <meta name="apple-mobile-web-app-title" content="...">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	<!-- windows phone 点击无高光 -->
	<meta name="msapplication-tap-highlight" content="no">
	<link rel="stylesheet" type="text/css" href="/css/base2.css" />
	<script type="text/javascript" src="/js/mobile2/lib/jquery-1.10.1.min.js"></script>
</head>
<body>
	<div class="main">
		<div class="page-title">
			<div class="icon c-back" onclick="window.location.href='/index2'"></div>
			<i class="title">${subjectobj.fTitle}</i>
			<span class="type-counts" id="sp_commentct">0</span>
		</div>
		<!-- 电影列表 -->
		<div class="move-list show-moves">
			<div class="move-c">
				<!--<span class="mc-list">-->
					<!--<div class="mc-img">-->
						<!--<img src="">-->
						<!--<i class="mc-source">7.5</i>-->
					<!--</div>-->
					<!--<div class="mc-name">你和我到永远你和我到永远</div>-->
				<!--</span>-->
				<!--<span class="mc-list">-->
					<!--<div class="mc-img">-->
						<!--<img src="">-->
						<!--<i class="mc-source">7.5</i>-->
					<!--</div>-->
					<!--<div class="mc-name">你和我到永远</div>-->
				<!--</span>-->
				<!--<span class="mc-list">-->
					<!--<div class="mc-img">-->
						<!--<img src="">-->
						<!--<i class="mc-source">7.5</i>-->
					<!--</div>-->
					<!--<div class="mc-name">你和我到永远</div>-->
				<!--</span>-->
				<!--<span class="mc-list">-->
					<!--<div class="mc-img">-->
						<!--<img src="">-->
						<!--<i class="mc-source">7.5</i>-->
					<!--</div>-->
					<!--<div class="mc-name">你和我到永远</div>-->
				<!--</span>-->
			</div>
		</div>
		<!-- ibottom -->
		<div class="ibot-box">
			<div class="ibot-layer"></div>
			<span class="ibot">
				<span class="icon itop-close"></span>
				<span class="icon ibot-logo"></span>
				<span class="ibot-txt">爱电影，爱生活</span>
				<span class="ibot-down" onclick="DwonApp()">立即下载</span>
			</span>
		</div>
		<div class="loading-finish" id="div_commentfoot"></div>
		<!-- come back top -->
		<div class="icon c-top">
			
		</div>
	</div>
	<script type="text/javascript" src="/js/mobile2/js/usercenter.js"></script>
	<script type="text/javascript" src="/js/mobile2/js/base.js"></script>
	<script type='text/javascript' src='/js/mobile2/js/mobilecom.js' charset='utf-8'></script>
	<script>
		$('.ibot-box').hide();
        var data_types=$.getUrlParam('subjectid');
//        var typename='';
//        if (!data_types){
//            typename='全部';
//        }
//        else{
//            typename=   GetVideoTypeNameByTypeId(data_types)
//        }

        //$('#i_title').html(typename);

        var filmObject = {
            pno: 1,
            pagesize: 9,
            allcount: -1
        }
        LoadVideoList();
        function LoadVideoList() {

            $.ajax({
                type: 'get',
                url:
                '/api/film/getfilmsubjectlist?Subjectid='+data_types+'&pno='+filmObject.pno+'&pagesize=' +
                ''+filmObject.pagesize+'&allcount=-1',
                dataType: 'json',
                success: function(data){
                    if (mortise_layout.ValidataResult(data)) {
                        var videoList = data.result.list;
                        var dataCount=data.result.count;
                        filmObject.allcount=dataCount;
                        $('#sp_commentct').html(dataCount);
                        if (videoList && videoList.length > 0) {
                            var _html=''
                            $.each(videoList,function (index,item) {
                                _html+='	<span class="mc-list" onclick="GoToVideoInfo(\''+item.fId+'\')">'+
                                    '<div class="mc-img">'+
                                    '<img src="'+item.fPhoto+'">'+
                                    '<i class="mc-source">'+item.fScore+'</i>'+
                                    '</div>'+
                                    '<div class="mc-name">'+item.fName+'</div>'+
                                    '</span>';
                            });
                            if (filmObject.pno==1){
                                $('.move-c').html(_html);
                            }
                            else{
                                $('.move-c').append(_html);
                            }
                        }
                        else{
                            $('#ul_comment').html('没有数据了！');
                        }
                        if (dataCount>( filmObject.pno)* filmObject.pagesize){
                            $('#div_commentfoot').html('<span class="get-more-data"  style="cursor:pointer" onclick="loadMore()">点击加载更多...</span>');
                        }
                        else{
                            //over
                            $('#div_commentfoot').html('<span class="get-more-data" >没有数据了...</span>');
                        }
                    }

                }
            });
        }
        function loadMore() {
            filmObject.pno++;
            LoadVideoList();
        }


	</script>
</body>
</html>